package cn.topcodes.tcsf.app.domain.api;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import java.io.Serializable;

/**
 * Created by Unicorn on 2017/7/26.
 */
@Data
public class ReqRegister implements Serializable {

    @NotBlank(message = "请输入用户名")
    @Length(min = 3, max = 20, message = "用户名长度为3~20个字符")
    private String username;

    @Length(min = 0, max = 20, message = "姓名长度最大为20个字符")
    private String realname;

    @NotBlank(message = "请输入密码")
    @Length(min = 6, max = 40, message = "密码长度为6~40个字符")
    private String password;

}
